package com.dw.etl.core.bean.model;

import java.io.Serializable;
import java.util.Date;

public class MdBaseIndex implements Serializable {

	private static final long serialVersionUID = 1L;

	private String pkIndex;

	private String cd;

	private String na;

	private String des;

	private Date dtSysCre;

	private Date dtSysModi;

	private String idIndex;

	private String valTp;

	private Long numLth;

	private Byte numPrec;

	public String getIdIndex() {
	    return idIndex;
	}

	public void setIdIndex(String idIndex) {
	    this.idIndex = idIndex;
	}

	public String getCd() {
	    return cd;
	}

	public void setCd(String cd) {
	    this.cd = cd;
	}

	public String getNa() {
	    return na;
	}

	public void setNa(String na) {
	    this.na = na;
	}

	public String getDes() {
	    return des;
	}

	public void setDes(String des) {
	    this.des = des;
	}

	public Date getDtSysCre() {
	    return dtSysCre;
	}

	public void setDtSysCre(Date dtSysCre) {
	    this.dtSysCre = dtSysCre;
	}

	public Date getDtSysModi() {
	    return dtSysModi;
	}

	public void setDtSysModi(Date dtSysModi) {
	    this.dtSysModi = dtSysModi;
	}

	public Long getNumLth() {
	    return numLth;
	}

	public void setNumLth(Long numLth) {
	    this.numLth = numLth;
	}

	public Byte getNumPrec() {
	    return numPrec;
	}

	public void setNumPrec(Byte numPrec) {
	    this.numPrec = numPrec;
	}

	public String getValTp() {
	    return valTp;
	}

	public void setValTp(String valTp) {
	    this.valTp = valTp;
	}

	@Override
	public boolean equals(Object that) {
	    if (this == that) {
	        return true;
	    }
	    if (that == null) {
	        return false;
	    }
	    if (getClass() != that.getClass()) {
	        return false;
	    }
	    MdBaseIndex other = (MdBaseIndex) that;
	    return (this.getIdIndex() == null ? other.getIdIndex() == null : this.getIdIndex().equals(other.getIdIndex())) && (this.getCd() == null ? other.getCd() == null : this.getCd().equals(other.getCd())) && (this.getNa() == null ? other.getNa() == null : this.getNa().equals(other.getNa())) && (this.getDes() == null ? other.getDes() == null : this.getDes().equals(other.getDes())) && (this.getDtSysCre() == null ? other.getDtSysCre() == null : this.getDtSysCre().equals(other.getDtSysCre())) && (this.getDtSysModi() == null ? other.getDtSysModi() == null : this.getDtSysModi().equals(other.getDtSysModi())) && (this.getNumLth() == null ? other.getNumLth() == null : this.getNumLth().equals(other.getNumLth())) && (this.getNumPrec() == null ? other.getNumPrec() == null : this.getNumPrec().equals(other.getNumPrec())) && (this.getValTp() == null ? other.getValTp() == null : this.getValTp().equals(other.getValTp()));
	}

	@Override
	public int hashCode() {
	    final int prime = 31;
	    int result = 1;
	    result = prime * result + ((getIdIndex() == null) ? 0 : getIdIndex().hashCode());
	    result = prime * result + ((getCd() == null) ? 0 : getCd().hashCode());
	    result = prime * result + ((getNa() == null) ? 0 : getNa().hashCode());
	    result = prime * result + ((getDes() == null) ? 0 : getDes().hashCode());
	    result = prime * result + ((getDtSysCre() == null) ? 0 : getDtSysCre().hashCode());
	    result = prime * result + ((getDtSysModi() == null) ? 0 : getDtSysModi().hashCode());
	    result = prime * result + ((getNumLth() == null) ? 0 : getNumLth().hashCode());
	    result = prime * result + ((getNumPrec() == null) ? 0 : getNumPrec().hashCode());
	    result = prime * result + ((getValTp() == null) ? 0 : getValTp().hashCode());
	    return result;
	}

	@Override
	public String toString() {
	    StringBuilder sb = new StringBuilder();
	    sb.append(getClass().getSimpleName());
	    sb.append(" [");
	    sb.append("Hash = ").append(hashCode());
	    sb.append(", serialVersionUID=").append(serialVersionUID);
	    sb.append(", idIndex=").append(idIndex);
	    sb.append(", cd=").append(cd);
	    sb.append(", na=").append(na);
	    sb.append(", des=").append(des);
	    sb.append(", dtSysCre=").append(dtSysCre);
	    sb.append(", dtSysModi=").append(dtSysModi);
	    sb.append(", numLth=").append(numLth);
	    sb.append(", numPrec=").append(numPrec);
	    sb.append(", valTp=").append(valTp);
	    sb.append("]");
	    return sb.toString();
	}

}